package com.akcome.apollo.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.akcome.apollo.domain.BmpAccount;

/**
 * 用户账户信息Repository接口
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
public interface BmpAccountRepository extends JpaRepository<BmpAccount,Long>,JpaSpecificationExecutor<BmpAccount> {

	List<BmpAccount> findByUserId(Long userId);
	
	BmpAccount findByUserIdAndName(Long userId,String name);
	
	int countByIdAndUserId(Long id,Long userId);
}
